#include"variable.h"


uint8 CheckSum(uint8 *data , uint8 data_length)
{
	uint8 CheckSum_value = 0U;
	uint8 cs_i;

	for(cs_i = 0U; cs_i < data_length; cs_i++)
	{
		CheckSum_value ^=*(&data[cs_i]);
		/* CheckSum_value ^=*data++;*/
	}
	
	return CheckSum_value;

}
